<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Writing Scripts &mdash; Documentation</title>
    <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="Documentation" href="index.html" />
    <link rel="up" title="2. Building an Application" href="build_app.html" />
    <link rel="next" title="Server Side Scripts" href="server_side_script.html" />
    <link rel="prev" title="Creating Reports" href="creating_reports.html" /> 
  </head>
  <body>
    <div style="background-color: #FFF; text-align: left; padding: 8px 0px"><img src="_static/banner300910.gif"></div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="server_side_script.html" title="Server Side Scripts"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="creating_reports.html" title="Creating Reports"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">Documentation</a> &raquo;</li>
          <li><a href="build_app.html" accesskey="U">2. Building an Application</a> &raquo;</li> 
      </ul>
    </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h4>Previous topic</h4>
            <p class="topless"><a href="creating_reports.html"
                                  title="previous chapter">Creating Reports</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="server_side_script.html"
                                  title="next chapter">Server Side Scripts</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="_sources/writing_scripts.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="writing-scripts">
<h1>Writing Scripts<a class="headerlink" href="#writing-scripts" title="Permalink to this headline">¶</a></h1>
<p>In your application, you can put in automation by writing scripts. These scripts can be use for
checking value of inputs, doing calculations, fetching values from other records etc.</p>
<p>Scripts are executed on events. These events can be triggered on the server-side or client-side.</p>
<p>For more advanced function relating to scripts, please see the API and Cookbook</p>
<ul>
<li class="toctree-l1"><a class="reference external" href="server_side_script.html">Server Side Scripts</a><ul>
<li class="toctree-l2"><a class="reference external" href="server_side_script.html#introduction">Introduction</a></li>
<li class="toctree-l2"><a class="reference external" href="server_side_script.html#declaring-a-class">Declaring a Class</a></li>
<li class="toctree-l2"><a class="reference external" href="server_side_script.html#validate-method">validate method</a></li>
<li class="toctree-l2"><a class="reference external" href="server_side_script.html#on-update-on-submit-on-cancel-methods">on_update, on_submit, on_cancel methods</a></li>
<li class="toctree-l2"><a class="reference external" href="server_side_script.html#adding-child-records">Adding Child Records</a></li>
<li class="toctree-l2"><a class="reference external" href="server_side_script.html#debugging">Debugging</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="client_side_script.html">Client Side Scripts</a><ul>
<li class="toctree-l2"><a class="reference external" href="client_side_script.html#introduction">Introduction</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_script.html#cur-frm-object">cur_frm Object</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_script.html#onload-event">onload event</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_script.html#refersh-event">refersh event</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_script.html#server-calls">Server Calls</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_script.html#field-level-triggers">Field Level Triggers</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_script.html#fetch-pattern">Fetch Pattern</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="server_side_cookbook.html">Server Side Cookbook</a><ul>
<li class="toctree-l2"><a class="reference external" href="server_side_cookbook.html#create-a-name-by-using-a-prefix-selected-by-the-user">Create a name by using a prefix selected by the user</a></li>
<li class="toctree-l2"><a class="reference external" href="server_side_cookbook.html#stop-duplicate-entries-in-a-child-table-based-on-a-key">Stop duplicate entries in a child table based on a key</a></li>
<li class="toctree-l2"><a class="reference external" href="server_side_cookbook.html#add-an-event-to-the-calendar">Add an event to the calendar</a></li>
<li class="toctree-l2"><a class="reference external" href="server_side_cookbook.html#send-html-email-based-on-certain-condition">Send HTML Email based on certain condition</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="client_side_cookbook.html">Client Side Cookbook</a><ul>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#fetch-customer-cell-no-and-email-id-based-on-name">Fetch customer cell no and email id based on name</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#form-events-triggers">Form Events (Triggers)</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#accessing-updating-field-objects">Accessing / Updating Field Objects</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#field-events-triggers">Field Events (Triggers)</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#overloading-link-field-queries">Overloading Link Field queries</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#setting-contextutal-help-tips">Setting contextutal help (Tips)</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#custom-ui-using-the-html-field">Custom UI using the HTML Field</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#useful-api-methods">Useful API Methods</a></li>
<li class="toctree-l2"><a class="reference external" href="client_side_cookbook.html#using-templates">Using Templates</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="report_cookbook.html">Report Cookbook</a><ul>
<li class="toctree-l2"><a class="reference external" href="report_cookbook.html#modify-report-filters-client">Modify Report Filters (Client)</a></li>
<li class="toctree-l2"><a class="reference external" href="report_cookbook.html#remove-paging-for-a-report-client">Remove Paging for a Report (Client)</a></li>
<li class="toctree-l2"><a class="reference external" href="report_cookbook.html#hide-column-picker-client">Hide Column Picker (Client)</a></li>
<li class="toctree-l2"><a class="reference external" href="report_cookbook.html#validate-fitler-values-server">Validate fitler values (Server)</a></li>
<li class="toctree-l2"><a class="reference external" href="report_cookbook.html#append-a-column-to-the-report-server">Append a column to the report (Server)</a></li>
<li class="toctree-l2"><a class="reference external" href="report_cookbook.html#add-data-to-a-column-server">Add data to a column (Server)</a></li>
<li class="toctree-l2"><a class="reference external" href="report_cookbook.html#append-rows-to-the-report-server">Append rows to the report (Server)</a></li>
</ul>
</li>
</ul>
</div>


          </div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="server_side_script.html" title="Server Side Scripts"
             >next</a> |</li>
        <li class="right" >
          <a href="creating_reports.html" title="Creating Reports"
             >previous</a> |</li>
        <li><a href="index.html">Documentation</a> &raquo;</li>
          <li><a href="build_app.html" >2. Building an Application</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2010, Rushabh Mehta.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
    </div>
  </body>
</html>